package com.exercise.activemq.usemq.topic;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * @author admin
 * 2019/12/13-10:16
 **/
@Component
public class ConsumerTopic {
    @JmsListener(destination = "springboot.topic",containerFactory = "jmsTopicListenerContainerFactory")
  public void receiveTopic(String text){
    System.out.println(this.getClass().getName()+" 收到报文"+text);
  }

}
